package com.sch.study.concurrency.baseThread;

/**
 * User: hui_stone
 * Date: 2016/2/24 0024
 * Time: 下午 16:07
 */
public class RunnableTest {
    public static void main(String[] args) {
        MyRunnable mt = new MyRunnable();

        // 启动3个线程t1,t2,t3(它们共用一个Runnable对象)，这3个线程一共卖10张票！
        Thread t1=new Thread(mt);
        Thread t2=new Thread(mt);
        Thread t3=new Thread(mt);
        t1.start();
        t2.start();
        t3.start();
    }
}
